package com.caiyouxi.advertise.mapper;

import com.caiyouxi.advertise.model.AdvertiseSlideBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdvertiseSlideMapper {
    /**
     * 新增幻灯片
     * */
    Integer add_slide(AdvertiseSlideBean bean);

    /**
     * 删除幻灯片
     * */
    Integer delete_slide(AdvertiseSlideBean bean);

    /**
     * 更新幻灯片
     * */
    Integer update_slide(AdvertiseSlideBean bean);

    /**
     * 查找幻灯片效果统计（广告效果统计）
     * */
    List<AdvertiseSlideBean> get_advertise_slide(AdvertiseSlideBean bean);

    /**
     * 查找共多少条
     * */
    Integer get_advertise_count(AdvertiseSlideBean bean);

    /**
     * 修改状态
     * */
    Integer update_statues(AdvertiseSlideBean bean);

    /**
     * 查看详情
     * */
    AdvertiseSlideBean get_slide_info(AdvertiseSlideBean bean);
}
